<!-- 未完成 -->
<!-- 维修记录完成的展示 -->
<template>
  <div class="noComplete-container" >
    <div class="item">
      <div class="th">报修描述</div>
      <div class="th">报修图片</div>
      <div class="th">报修时间</div>
      <div class="th">状态</div>
    </div>
    <div class="item" v-for="item in porps.MainRecords" :key="item.id">
      <div class="td">{{ item.RepairDescription }}</div>
      <div class="td">
        <img :src="item.RepairImg" />
      </div>
      <div class="td">{{ moment(item.RepairStartTime).format("YYYY-MM-DD") }}</div>
      <div class="td">等待中...</div>
    </div>
  </div>
</template>

<script setup>
import moment from "moment"
const porps = defineProps({
  MainRecords: {
    type: Array,
  }
});

</script>

<style lang="less" scoped>
@import "@/styles/var.less";
.noComplete-container {
  width: 100%;
}
.item {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  .th {
    border-top: 1px solid #fff;
    font-weight: bold;
    color: @gray;
    font-size: 1em;
  }
  .th,
  .td {
    height: 60px;
    line-height: 60px;
    border-bottom: 1px solid #fff;
    position: relative;
    img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%,-50%);
      width: 50px;
      height: 50px;
      object-fit: contain;
    }
  }
}
</style>